d1ad045cd611ede3bf06fa4d5c3ac70f74bc359d,ahbottomnavigation/src/main/java/com/aurelhubert/ahbottomnavigation/AHBottomNavigation.java,AHBottomNavigation,updateSmallItems,#number#boolean#,653

Before Change


				final TextView notification = (TextView) view.findViewById(R.id.bottom_navigation_notification);

				icon.setSelected(true);
				AHHelper.updateTopMargin(icon, inactiveMargin, activeMarginTop);
				AHHelper.updateLeftMargin(notification, notificationInactiveMarginLeft, notificationActiveMarginLeft);
				AHHelper.updateTopMargin(notification, notificationInactiveMarginTop, notificationActiveMarginTop);
				AHHelper.updateTextColor(title, itemInactiveColor, itemActiveColor);

After Change



				icon.setSelected(true);

				if (titleState != TitleState.ALWAYS_HIDE) {
					AHHelper.updateTopMargin(icon, inactiveMargin, activeMarginTop);
					AHHelper.updateLeftMargin(notification, notificationInactiveMarginLeft, notificationActiveMarginLeft);
					AHHelper.updateTopMargin(notification, notificationInactiveMarginTop, notificationActiveMarginTop);
				}

				AHHelper.updateTextColor(title, itemInactiveColor, itemActiveColor);
				AHHelper.updateAlpha(title, 0, 1);

				if (titleState != TitleState.ALWAYS_HIDE) {
					AHHelper.updateWidth(container, notSelectedItemWidth, selectedItemWidth);
				}

				AHHelper.updateDrawableColor(context, items.get(itemIndex).getDrawable(context), icon,
						itemInactiveColor, itemActiveColor, forceTint);

				if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && colored) {
					int finalRadius = Math.max(getWidth(), getHeight());
					int cx = (int) views.get(itemIndex).getX() + views.get(itemIndex).getWidth() / 2;
					int cy = views.get(itemIndex).getHeight() / 2;

					if (circleRevealAnim != null && circleRevealAnim.isRunning()) {
						circleRevealAnim.cancel();
						setBackgroundColor(items.get(itemIndex).getColor(context));
						backgroundColorView.setBackgroundColor(Color.TRANSPARENT);
					}

					circleRevealAnim = ViewAnimationUtils.createCircularReveal(backgroundColorView, cx, cy, 0, finalRadius);
					circleRevealAnim.setStartDelay(5);
					circleRevealAnim.addListener(new Animator.AnimatorListener() {
						@Override
						public void onAnimationStart(Animator animation) {
							backgroundColorView.setBackgroundColor(items.get(itemIndex).getColor(context));
						}

						@Override
						public void onAnimationEnd(Animator animation) {
							setBackgroundColor(items.get(itemIndex).getColor(context));
							backgroundColorView.setBackgroundColor(Color.TRANSPARENT);
						}

						@Override
						public void onAnimationCancel(Animator animation) {
						}

						@Override
						public void onAnimationRepeat(Animator animation) {
						}
					});
					circleRevealAnim.start();
				} else if (colored) {
					AHHelper.updateViewBackgroundColor(this, currentColor,
							items.get(itemIndex).getColor(context));
				} else {
					if (defaultBackgroundResource != 0) {
						setBackgroundResource(defaultBackgroundResource);
					} else {
						setBackgroundColor(defaultBackgroundColor);
					}
					backgroundColorView.setBackgroundColor(Color.TRANSPARENT);
				}

			} else if (i == currentItem) {

				final View container = view.findViewById(R.id.bottom_navigation_small_container);
				final TextView title = (TextView) view.findViewById(R.id.bottom_navigation_small_item_title);
				final ImageView icon = (ImageView) view.findViewById(R.id.bottom_navigation_small_item_icon);
				final TextView notification = (TextView) view.findViewById(R.id.bottom_navigation_notification);

				icon.setSelected(false);

				if (titleState != TitleState.ALWAYS_HIDE) {
					AHHelper.updateTopMargin(icon, activeMarginTop, inactiveMargin);
					AHHelper.updateLeftMargin(notification, notificationActiveMarginLeft, notificationInactiveMarginLeft);
					AHHelper.updateTopMargin(notification, notificationActiveMarginTop, notificationInactiveMarginTop);
				}

				AHHelper.updateTextColor(title, itemActiveColor, itemInactiveColor);
				AHHelper.updateAlpha(title, 1, 0);

				if (titleState != TitleState.ALWAYS_HIDE) {
					AHHelper.updateWidth(container, selectedItemWidth, notSelectedItemWidth);
				}